<include file="Common/header" />
<title>物业服务</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 物业服务
	<span class="c-gray en">&gt;</span><?php if($typeid == 5){echo '物业公告';}else{echo '社区资讯';} ?>
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<div style="padding-left: 20px;padding-top: 20px;padding-right: 20px">
	<span style="display: inline-block;width: 280px;text-align: right">
		资讯类型：<span class="select-box" style="width: 200px">
		  <select class="select" size="1" name="typeid" id="typeid">
			  <option value="0">--全部--</option>
			  <foreach name="typelist" item="tps">
			  <option value="{$tps.typeid}" {$tps['typeid'] == $typeid ? 'selected' : ''}>{$tps.type_title}</option>
			  </foreach>
		  </select>
		</span>
	</span>
	<span style="display: inline-block;width: 280px;text-align: right;margin-left: 13px;">
		发布时间：
		<span class="select-box" style="width:200px">
			<input class="select form-control layer-date" id="stime" name="stime" />
		</span>
	</span>
	
	<a href="javascript:;" class="btn btn-success radius"><i class="Hui-iconfont">&#xe709;</i> 查询</a> 
</div>
<div class="pd-20">
	<div class="dataTables_wrapper no-footer" id="ajaxDiv">
		<include file="Topic/list" />
	</div>
</div>

<script type="text/javascript">
	/*管理员-角色-添加*/
	function admin_role_add(title,url,w,h){
		layer_show(title,url,w,h);
	}
	/*管理员-角色-编辑*/
	function admin_role_edit(title,url,id,w,h){
		layer_show(title,url,1200,h);
	}
	
	function admin_role_del(obj,id){
		layer.confirm('确认要删除吗？',function(index){
			$.post('index.html', {tid: id}, function(rs){
				if(rs == '删除成功'){
					$("#tr_"+ id).html('是');
				}
				layer.msg(rs, {icon:1,time:{$Think.config.PROMPT_TIME}});
			});
		});
	}
	
	$(document).ready(function(){
		$("#stime").on('click', function(){
			laydate({istime: true, format: 'YYYY-MM-DD'});
		});
		
		//按条件查询
		$(".btn-success").on('click', function(){
			var load = layer.load(2);
			var where = {};
				where.typeid = $("#typeid").val();
				where.stime = $("#stime").val();
				where.ajax = 1;
			$.get('index.html', where, function(data){
				layer.close(load);
				$("#ajaxDiv").html(data);
			});
		});
	});
</script>
</body>
</html>